var detector = navigator.userAgent,
    isAndroid = /Android (\d+\.\d+)/.test(detector),
    version = parseFloat(RegExp.$1),
    phoneScale = parseInt(window.screen.width)/750;
if(isAndroid){
  if(version>2.3){
    document.write('<meta name="viewport" content="width=750, minimum-scale = '+ phoneScale +', maximum-scale = '+ phoneScale +', target-densitydpi=device-dpi">');
  }else{
    document.write('<meta name="viewport" content="width=750, target-densitydpi=device-dpi">');
  }
}else{
  document.write('<meta name="viewport" content="width=750, user-scalable=no, target-densitydpi=device-dpi">');
}
//微信去掉下方刷新栏
if(navigator.userAgent.indexOf('MicroMessenger') >= 0){
  document.addEventListener('WeixinJSBridgeReady', function() {
    //WeixinJSBridge.call('hideToolbar');
  });
}

